package td2exo2;

import java.util.Calendar;
 
import java.util.GregorianCalendar;

import java.util.Scanner;

public class TestMediatheque {
		
	public static void main(String[] args) {
		
		Calendar d1 = new GregorianCalendar(2013, 01, 10);
		
		Calendar d2 = new GregorianCalendar(2012, 01, 15);
		
		Livre l1 = new Livre(1, "Science et Vie", "Revue");
		
		Livre l2 = new Livre(2, "Astronomie", "Neumann");
		
		Livre l3 = new Livre(3, "Physique", "Physic Mann");
		
		Livre l4 = new Livre(4, "Medecine", "House");
		
		Video v1 = new Video(20, "Film d'Horreur", "Steve");
		
		Video v2 = new Video (21, "Inception", "Johnny");
		
		Video v3 = new Video (22, "Island Shutter", "Kenny");
		
		Adherent ad = new Adherent(10, "Les Guignols");
		
		//System.out.println("Emprunt 1 possible ? :\t"+ad.empruntPossible());
				
		ad.emprunterLivre(l1, d1);
		
		//System.out.println("Emprunt 2 possible ? :\t"+ad.empruntPossible());
		
		ad.emprunterLivre(l2, d1);
		
		//System.out.println("Emprunt 3 possible ? :\t"+ad.empruntPossible());
		
		ad.emprunterLivre(l3, d1);
		
		//System.out.println("Emprunt 4 possible ? :\t"+ad.empruntPossible());
				
		ad.emprunterVideo(v1, d1);
		
		//System.out.println("Emprunt 5 possible ? :\t"+ad.empruntPossible());
				
		ad.emprunterVideo(v2, d1);
		
		//System.out.println("Emprunt 6 possible ? :\t"+ad.empruntPossible());
		
		System.out.println(ad);
		
		
		
		
		

	}

}
